package com.jd.finance.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户角色中间表
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Assign对象", description = "用户角色中间表")
public class Assign implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分配id")
    @TableId(value = "assi_id", type = IdType.AUTO)
    private Integer assiId;

    @ApiModelProperty(value = "分配用户id")
    private Integer uid;

    @ApiModelProperty(value = "分配角色id")
    private Integer roleId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
